package com.dou.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dou.entity.User;
import com.dou.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RpcUserServiceimpl implements UserService {
    @Reference
    private UserService userService;//远程调用userService
    @Override
    public List<User> getAllUser() {
        return userService.getAllUser();
    }
}
